using UnityEngine;
namespace CGF
{
    public partial class PanelMyShareRule : UIComponentBase, IAwake<UILayer, bool>, IDestroy
    {
        public static void Open()
        {
            UIManagerComponent.instance.OpenUI<PanelMyShareRule>(UILayer.Normal, RootComponent.instance, false);
        }

        public static void Close()
        {
            UIManagerComponent.instance.CloseUI<PanelMyShareRule>();
        }

        public async void Awake(UILayer layer, bool isFloat)
        {
            await SpawnPrefab("Prefabs/GameUI/PanelMyShareRule", layer, isFloat);
			BindProperties(transform);
            
            BtnBack.SetClick(Close);

            Table.sprite = Table.gameObject.Get<Sprite>((int)I18N.CurrLanguage);
        }

        public override void OnDestroy()
        {
            base.OnDestroy();
        }

    }
}
